package com.code.zg.news.di.module;

import android.app.Activity;

import com.code.zg.news.di.ActivityScope;

import dagger.Module;
import dagger.Provides;

/**
 * Created by zhanggang on 2017/2/25.
 */
@Module
public class ActivityModule {
    private final Activity activity;

    public ActivityModule(Activity activity){
        this.activity=activity;
    }
    @Provides
    @ActivityScope
    Activity privodeActivity(){
        return activity;
    }
}
